-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Adds a new example: onReceiveExample.ino #9415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds a new example that uses HardwareSerial::onReceive(). The example demosntrates how to read all the data sent to UART0, considering that the end of transmission is defined by a period of time with UART in idle state.
👋 Hello SuGlider, we appreciate your contribution to this project! Click to see more instructions ...
Review and merge process you can expect ...
|
Fixes typos
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested on ESP32-S2 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a small suggestion.
libraries/ESP32/examples/Serial/onReceiveExample/onReceiveExample.ino
Outdated
Show resolved
Hide resolved
libraries/ESP32/examples/Serial/onReceiveExample/onReceiveExample.ino
Outdated
Show resolved
Hide resolved
libraries/ESP32/examples/Serial/onReceiveExample/onReceiveExample.ino
Outdated
Show resolved
Hide resolved
@lucasssvaz @me-no-dev - it shall be ready now. |
Adds a new example that uses HardwareSerial::onReceive(). The example demosntrates how to read all the data sent to UART0, considering that the end of transmission is defined by a period of time with UART in idle state.
Description of Change
This PR adds a new example that uses HardwareSerial::onReceive().
The example demosntrates how to read all the data sent to UART0, considering that the end of transmission is defined by a period of time with UART in idle state.
This is based on a question from a user.
Tests scenarios
Tested using the code from the example with the ESP32, ESP32-S3 and ESP32-C3.
Related links
#6102 (comment)